package com.xx.pmis.services;

import java.util.List;

import com.xx.pmis.model.Account;

public interface AccountService {
	public void saveOrUpdateAccount(Account account) throws Exception;

	public void saveAccount(Account account) throws Exception;

	public void deleteAccount(Account account) throws Exception;

	// 根据记账记录ID查询该记账记录
	public Account getAccountByAccountID(String accountID) throws Exception;

	// 查询所有记账记录
	public List<Account> getAllAccountByCondition(String hql) throws Exception;

	// 查询所有记账记录，分页显示
	public List<Account> getAllAccountByConditionByPage(String hql, int currentPage, int lineSize) throws Exception;

	// 记录数目
	public int getCountOfAccountByCondition(String hql) throws Exception;

	// 查询最大凭证编号
	public String getMaxAccountCodeFromAccount() throws Exception;

	// 根据记账记录代码查询该记账记录
	public Account getAccountByAccountCode(String accountCode) throws Exception;

}
